﻿using System;
using System.Collections.Generic;
using System.Device.Location;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Phone.Maps.Controls;

namespace RadarGlobalPro.GUIView
{
    class PushpinEx
    {
        Map MapControl;

        MapOverlay mylocationOverlay = new MapOverlay();

        public PushpinEx(Map MapControl,GeoCoordinate LocationsData,string ImageUrl,string Description)
        {
            CustomPushpinEx _tooltip=new CustomPushpinEx();
            _tooltip.Description=Description;
            _tooltip.ImageUrl = ImageUrl;
            mylocationOverlay.Content = _tooltip;
            mylocationOverlay.GeoCoordinate = LocationsData;
            MapLayer myLocationLayer = new MapLayer();
            myLocationLayer.Add(mylocationOverlay);
            MapControl.Layers.Add(myLocationLayer);
            this.MapControl=MapControl;
        }
    }
}
